package com.kirk.cts.crawler.driver;

import com.kirk.cts.core.runcycle.CrawlerToolRunCycleManager;
import com.kirk.cts.core.runcycle.ICrawlerToolRunCycle;
import com.kirk.cts.ui.style.ColorDefinitions;
import com.kirk.cts.ui.style.LookAndFeelSelector;

import javax.swing.*;


/**
 * <p> CrawlerToolDashboard.java </p>
 *
 * @version 1.0.0
 * @Author kirkliu
 * @Date 2020-08-30 18:29
 * @Description GUI界面入口类
 */
public class CrawlerToolDashboard {
    public static void main(String[] args) {
        startCrawler();
    }

    /**
     * 启动爬虫
     */
    private static void startCrawler() {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                LookAndFeelSelector.setLookAndFeel("OfficeBlue2007");
                ColorDefinitions.initColors();
                ICrawlerToolRunCycle cowSwingRunCycle = new CrawlerToolRunCycleManager();
                cowSwingRunCycle.start();
            }
        });

    }
}
